Hmm, i'm not to fond of doing this in a script.