Added an default init function.