Finished the qk series of functions