Implemented for set loop