Added ability to load from json files