Adding deviation and confident bands calculation