Simple scheduler implementation.