Fixes #237 - rewrote logic around last visit time.