Add sample I/O