Add expiration logic.