Have better implemented system, fixed indeterminacy and objective function issue