Analysis scripts