First semblance of loop button working