Fixed LOOP and added some new operations