Ok, this wasn't actually working properly client side.