Added getModel function to retrieve model data