Updated saveDirectory