An imitation of Module.mix :)