Functions for hooking in to outlook