Added mtPkgAvail() and mtCompare()