Added an API to convert stage numbers to names.