More helper functions for generating the Intrinsic matrix