Probably better to seed the operations array outside of this function if that's the case.