Took away all the statics to save memory.
Moved updating time to it's own function.