Inline the blocks we need instead defining one for each function and using the reference to it