Implement command enum for I/O.