Add what-if support, closes #1.