Refs #3. Fixed a stupid mistake that caused a huge performance hit.