Updated for gradle.