Create macro for delayed block on main thread, and move to CommonMacros class.