Updates to support automatic shadows.