Add an updated Curt's code.

This is to add my code back in. Thanks for the awesome code!