Added attributes to simplex minimization. Getting an error at this stage.