Add the beginning of scheduling

Allowing for arbitrary time precision, down to 1ms