Script now stores data in separate directories.