Extension Matrix/parser function