StaleIn as function
Merge pull request #105 from jardakotesovec/dynamic-staleIn

StaleIn can be function.