Move functions for class
class for populate clients
JSON functions