Do initialization.