Is this function (and the connected ajax call) even needed anymore?