LOWMEMKILL code ported by VOKU from JB SAMMY SOURCE.