Added preliminary implementation of new local API function.