Simplified genDependencies() in mtl

By simplifying the condition statements, got it to work the way I wanted