Added functionality to chartd class