Yeah, its the standard way to do this, but was broken for a little while when I first wrote this file.