I want to be able to tell when a script has finished preforming it's task. However, I want to avoid having to put a true or false state at the end of the script. Any ideas?

I DO NOT want to do this:

function blah()
	print("blah blah blah")
end

_G["somename"]["ready"] = true;