Added matrix stats and other stuff