@bestog is right, this is the best way to do this.