I think this new code will work, though languages can be tricky.