Use scala utlity.