Add support to save models