Added a check to see if a functions works

Logs lisitems to console