Updated the paramseters from 1 dimensional array to 2 dimensional array