This function isn't checking anything, it's just doing some console.log()'s, which should be removed.