Setting debug mode