Refactoring public interface to name and type.