Better memory handling for alts.