Added a config file to get the server ip. Modifed the Agent to run periodically.