Added debug handler.