Removed a qDebug().
Added more debugging options.