Implement scheduler