Removed unnecessary is_entrance and is_exit flags.