This seems like the correct way to do things on client