Prevent main (UI) thread freezing on repeat