Completed the interpreted loop code