Implemented loop control