Simplified chaining code.
TODO: Fix multiple call bug
Simplified chaining code.
TODO: Fix multiple call bug