Did you set Script before anything is printed to the log?
Did you make sure to not use temporary stings? For example, strf() is no good.