Add beginning of Mat wrapper