Started initialze function.