Functionality of invitation management implemented.

Formating needed.