Integrating Knowledge Acquisition in Plan Selection