@daviddavis, good suggestion, converted the code to use hash+to_params.