Create data gathering functional