Extracted functions into their own classes.