Added file creation in case it doesnt exist