Controller to handle timer