Started working on function to generate matrices for each parameter separately for use in a faster fitting function.