Made file related functions.