Add arity checker

This allows other objects to be accessed within the block.