Moved methods to increase file readability.