Install and configure the agent