Adding a debug output method to models