Handle IO primitives