Updating the documentation to match the new API.