Added type retrieval to interface.