Added create new file function