Added some methods in preparation for the probability-calculating methods.