Added input driver functionality
Fixed bug where a limited number of messages could be sent