Finding the list of M functions