Item expiry works, but the code is shit