Added apply matrix 4 method