Added an init callback function in options