This seems pretty slick.

Changed one line