Adapting with purpose - TD