Main initialize.