Fixed heursitc module bug; fixed fundamental issue with specifying module-level dependencies.