Add delegate class to encapsulate cross thread procedure calls