Some advanced IO manipulation.