Implemented Read and Write handlers to be able to provide input, and check
output on demand.