Added ability to chain extendModels

Fixes #595