Added status monitor and clean up.
Defined the JSON format