Added type enum.
Added locale class.