Model function added