for and dotimes added.