Implements the initialization process.