Helluva lot of debugging