Made paths relative and added register_file