Added more sample I/O