Do blocking work on the background

Also updated the Gradle build file and removed unnecessary config.groovy