Got query links working