Adjusted code to work with spock 0.7.