Input/output handling.