Got the ion beam energy script working