Changed the result listener to collect all chunks of data. Should fix #23