Added models and octave only implementation