Implement basic scheduler