Attempt counting
Add debugging print