Removed auxiliary variable for sampling beta from global variables