Mindfully Shaped Programs