Extract a main