Fixed the procedure overriding problem.  Was using type in addmodel instead of class.  Works now.