Dramatically streamlined get_ermport.pl.