Issue #266: Make expiration time configurable.