Deleted category references as the function does not work as I expected