Removed Globals

Removed the annoy thin globals in the main function