Put every check into one loop for each entry -- to allow for more than one entry to be put through the function