Some extra functionality for Groovy