Implementing lifetime countdown Fixes #1