Cleanup expires code