Updated with limits
updated with a limit to the json
updated with exceptions