Compatibility with either greenery v1.x or v2.x