Broke up functions, added reading of actual files.