Init function added.