Added basic structure for scheduler