Added API example for processing. Unfinished.