Improve error handling. Add options for configuring timeouts and inter-request delay to the config file. Remove SMUSH from script.