Added onefile function.