Added warning and critical stop point when API calls are close to reaching their limit