Modified get-user-data.sh for modularity