Add Functions For Error Handling And Json'ing Inital Input
TJ