Wouldn't be better to move these out of the main method?