Adding categories retrieval function (not working yet)