Update qb.cpp