Added repeat statement