I've eliminated the cloudAttribues variable and there is now a single slaveAttributes JSONObject

Thanks.