Added matrix output