Aha, I read the docs, this is the right way to do this.