Properly implement whyrun mode