         
         var parameters = [String: AnyObject]()
         
-        if let name = newName {
-            parameters["name"] = name;
-        }
-        if let lightIdentifiers = newLightIdentifiers {
-            parameters["lights"] = lightIdentifiers;
-        }
+        parameters["name"] = newName;
+        parameters["lights"] = newLightIdentifiers;
         
         Alamofire.request(.PUT, "http://\(bridgeIp)/api/\(bridgeAcc)/groups/\(identifier)", parameters: parameters, encoding: .JSON)
             .responseJSON { response in

        
        var parameters = [String: AnyObject]()
        
        if let name = newName {
            parameters["name"] = name;
        }
        if let roomClass = newRoomClass {
            parameters["class"] = roomClass.rawValue;
        }
        if let lightIdentifiers = newLightIdentifiers {
            parameters["lights"] = lightIdentifiers;
        }
        
        Alamofire.request(.PUT, "http://\(bridgeIp)/api/\(bridgeAcc)/groups/\(identifier)", parameters: parameters, encoding: .JSON)
            .responseJSON { response in

        
        var parameters: [String: AnyObject] = ["name": name, "lights": lightIds, "recycle": recycle];
        
        parameters["transitiontime"] = transitionTime
        parameters["picture"] = picture
        parameters["appdata"] = appData?.toJSON()
        
        Alamofire.request(.POST, "http://\(bridgeIp)/api/\(bridgeAcc)/scenes", parameters: parameters, encoding: .JSON)
            .responseJSON { response in
