Adding debugging