Moved this into the more idiomatic place.