Added lag to the api.