Changed debug type to debug level.