Adding a lot of echo statements for ease of debugging