Added ability to save to a directory of choice