Updated code for people leaving the train.