Wrote interface for matrix engine.