Added checkbox for matrices