Adding regenerate task for real-time indices.
Adding rotate implementation.