Made all the MAPI functions private