Changed most of old debug command to the dbg commands.