Commented door_match function