Making progress. Chaining now works but needs tests for the wrapped picha functions.