Update script to use a Request class to parse out the necessary information/validation checking