Add the swizzle utility function