Moved File check functionality

!! NOT TESTED! need to test and fix any breaks