Ported class API functions.