Upgraded the debug mechanism to accept labels.