Added shape invalidation methods.