Added check for no schedule