Switched printf to qDebug to comply with pull request