That works!

I actually had tried this before, but I think the confusion came from
using the variable x and not the one I had just defined that made the
error message so confusing. I guess I should stop my 2AM coding
sessions.