Support importing matrix