Adding API methods to the Pipeline class and updating documentation to match the more refined API.