Modified inliner to be able to chain.
Fixed unbound varaible 'error.