Added Exception classes and LoopTranslator subclass.