Port: search M classes