#66 first version of scheduler infrastructure.