Identifying composite functions