Added matrix module