Added support for ruby blocks