Changed cat fuction to match Funcion signature