Modified to use JSON configuration file.