Adding consumes interface for getbytoken, also moving histogram booking to beginRun