Changed settings config to object style. Do time calculation for expires key.