Added matrix creation option from file.