Added check_for_new_data() function but is not functional yet