Added function for creating files