Adding Save to File functionality