Modified define method to yield the block provided.