Update Script to Allow Custom Prefix

This commit generalizes the script so that a custom prefix can be
specified.