Base implementation. Functions and simple recursive scheduling.