Added simple handling setMod operation