Update main class.