Added param $agent

To supply name of machine agent