Implemented aging algorithm