Rewrote timer tick method to fix part of Issue #93.

Needs testing on all three operating systems before accepting the pull request.