Added user inputs for dynamic matrix sizing.