1. Refactoring. 2. Getting frustrated at a bug I definitely didn't cause.