Added a fetch() method for use in while loops