Use looper to prevent stack maxsize errors