Added timer, and ClearAllState() method