Fixed logic error in waiting at bridge

Removed some debug messages as well