Added vertex extraction function.