Modifying input/output functions