Add support for defining dependencies
Add matrix transformation support