Implemented stale option with tests