Initialized function created