Reworked how lambdas and blocks are called to avoid dropping frames.