Started setting up the temporary matrix