Improve scala task.