More work on agency ajax call