Pulled methods into a helper file.