And actually, if code duplication is a big problem, you could create a proc and pass that as the block to each call.