Included Location class and manipulated the local matrix to modify the source