Analysis script