Stale work detection for Cryptonite
Code cleanup.
Code cleanup (2).