Moved code to receive bitfield into the loop checking for all other messages.