Beginning to create methods to make things more maintainable.