Make tickTime configurable, and reduce global var count