Got rid of useless orb_receive_loop, moved some helper functions