Added JSON packages, initialised ping method.