Added function to added to ingrore errors and improved x axis value interval counter