Core router (file creation)