Struct's instead of a lot of global vars.