Getting ready to port this over to wopr-api