Added check for course variable when creating course...