Updated pattern wrapper to use the v3 C pattern solution.