StaleIn can be function.

Replaces #94  #96 . Let me know if there is something to tweak. I did not want to get too crazy with tests, so let me know if you also find this as sufficient.

Thanks