Finished adding expected value computation