Eventually would be nice to put these into some helper file.