More idiomatic code.