This line appears a few times in this file.  Perhaps a helper function?