Updated bdi agent