Goal-based Self-Contextualization