Waiting at the level crossing