Added terminals class.