Added user control for matrix input