Simplified schedule code.