Implemented timer
Style changes.