Added function to fetch user activity from erdos and fixed a bug in function to fetch user activity from cf