Added doc for render time state execution and also fixed a bug with the feature.