Making debug protected