Utilized prompt function in script. Fixed some issues with uninitialized variables.