Adding efficient path-watching API.