Fix driver constructor, add debug stuff