Some debugging staff added. Meaningful exceptions, for example.