Initial scheduler implementation