ADDS input checks to send_message
ADDS skeleton of the poll_and_do function