Added model lookup instead of iterating through whole qset