Added debug toolbar check. Fixes #183.