I want to improve my logic in this simple script that if stops or crashes or re-execute the script then start over from the last recorded item in the JSON, and find in the b