First step in seperating reference files from files objects.