Tidy up analysis