Added getElementAtOffset method in Profile