Renamed DoorDirection to Direction, as its use is now more general.