Added methods to loop a callback x-many times