Finding bug

Adding cout statements after function calls.