Added custom run loop