Making correct file methods stuff