Trapping input ready for sending.