Rewrite shimmer to more intelligent.