Modified the cachematrix shell