Set up reading and writing boilerplate