Changed callback to use query strings.