Removed ending check to make it run till get 8192.
removed ending check, make it run until getting 8192.