It works, but modulo is crazy slow.