Added qDebug() statements