Tweaked version per instructions.