Pre-Database implementation. (realized writing to file is not as optimal)