There's no more idiomatic way to do this, is there?