Added activity functions and result retrieval functions