Add Mod logic to api