Added the get all values statement in main loop