Initial scheduler implementation.