Removed debugging statements.
Obscure, unexpected errors are handled.