Input and output for the core classes.