Implemented public API funs.