Added file creation if it doesn't exist.