I just posted this in mod support, but I realize it might fit better here. I have a bit of an interesting challenge for anyone experienced in Lua. I have an electric car mod for the modern ETKs, which can be found on my page if you are interested. My current goal for that mod is to create a system where the drive mode will dictate how much power it has. I have figured out where to put the limiting number (such as .5 for 50% power), but I am stuck on how to get the drive mode jbeam to communicate with my custom controller, shiftLogic-electricMotorCustom.lua. I have so far tried heavily modeling it after the two-step system, but that doesn't seem to work. If anybody has any advice, please let me know. I have attached the WIP mod (consider it a beta ). I have done my best to add comments to the program, but I can't seem to figure that out. Currently, I only have the modified drive mode files for the K-series, so keep that in mind if you open the mod. I would greatly appreciate any insight you might have on how I can fix this problem.