Rewrite sethome mod