Added expireLog functionality.