-Made it so there would be a maxSample where it wouldn't limit the
function at all through a small hack
-Added a comparator to make sure we are calculating BC variables
correctly