Client side code for mods