Added getActivity method