Hacked in some dependency check code