Before new agent updates

new agent will include a tuning function