Added bins declaration in the Begin function