Make documentation clearer and add an example.