Timer component refactor. Now wraps the StatefulComponent with a specific state and preprocessing function