added timer support, pause support