Forgot to add absolute value to cost function.