     if not currentGroup or currentGroup is 'koding' then "koding~#{KD.nick()}"
     else currentGroup
 
-  createGroupVM:(type='personal', callback)->
-    defaultVMOptions = {cpu : 1, disk : 1, ram : 1}
+  createGroupVM:(type='personal', cpuSize, callback)->
+    defaultVMOptions = {cpu : cpuSize, disk : 1, ram : 1}
     group = KD.singletons.groupsController.getCurrentGroup()
 
     group.fetchBundle (err, bundle)->

      else
        KD.singletons.finderController.mountVm vm.name
        vmController.emit 'VMListChanged'
      paymentModal.destroy()

    group = KD.singletons.groupsController.getGroupSlug()


    

    # Take this to a better place, possibly to payment controller.
    makePayment = (type, plan, callback)->
      planCode = plan.code
      cpuSize  = plan.item.meta.cpu
      if type is 'shared'
        group = KD.singletons.groupsController.getCurrentGroup()
        group.checkPayment (err, payments)->
