Add support for output placeholder (separate lock and output).
Update doc according to the new API.