Added set constant support.
Limit the number of iterations.
Limit the number of iterations.
Updated TODO