Update class with use_localhost option