OK. I'll move the logic to javascript.