Moved our first helper function into a separate file.