Program to stage/sort out different files