Found two other issues with the analyze script