Adding debugging logs