Updated to new QLib