Removed hardcoded values from addDataPoint