Adding function to get lead activity