diff --git a/bbb.install b/bbb.install
index 7329b84..ab5d94f 100644
--- a/bbb.install
+++ b/bbb.install
@@ -78,6 +78,12 @@ function bbb_schema() {
         'type' => 'int',
         'not null' => TRUE,
       ),
+	  'record' => array(
+        'description' => t('Record meeting'),
+        'type' => 'int',
+        'not null' => TRUE,
+      ),
+
     ),
     'primary key' => array('nid'),
   );
diff --git a/bbb.module b/bbb.module
index 7a22408..74b72d6 100644
--- a/bbb.module
+++ b/bbb.module
@@ -298,7 +298,14 @@ function bbb_form_alter(&$form, &$form_state, $form_id) {
       '#maxlength' => 255,
       '#description' => t('The URL that the Big Blue Button client will go to after users click the OK button on the <em>You have been logged out message</em>.'),
     );
-    //}
+    $form['bbb']['bbb_content_type_record'] = array(
+      '#title' => t('Record meeting'),
+      '#type' => 'checkbox',
+      '#default_value' => variable_get('bbb_content_type_record_' . $form['#node_type']->type, ''),
+      '#description' => t('Record the meeting'),
+    );
+
+
   }
 
   // Node edit form
@@ -359,6 +366,13 @@ function bbb_form_alter(&$form, &$form_state, $form_id) {
         '#description' => t('The URL that the Big Blue Button client will go to after users click the OK button on the <em>You have been logged out message</em>.'),
         '#attributes' => !empty($meeting->meetingid) ? array('disabled' => 'disabled') : array(),
       );
+      $form['bbb']['record'] = array(
+        '#title' => t('Record meeting'),
+        '#type' => 'checkbox',
+        '#default_value' => !empty($meeting->record) ? $meeting->record : variable_get('bbb_content_type_record_' . $node_type, ''),
+        '#description' => t('Record the meeting.'),
+        '#attributes' => !empty($meeting->meetingid) ? array('disabled' => 'disabled') : array(),
+      );
     }
   }
 }
@@ -371,6 +385,7 @@ function bbb_node_insert($node) {
   if (!bbb_is_meeting_type($node->type)) {
     return;
   }
+  //debug($node->bbb);
   bbb_store_meeting($node, (array) $node->bbb);
 }
 
@@ -575,6 +590,7 @@ function bbb_init_meeting($node = NULL, $params = array()) {
   $moderatorPW = variable_get('bbb_content_type_moderatorPW_' . $node->type, '');
   $attendeePW  = variable_get('bbb_content_type_attendeePW_'  . $node->type, '');
   $logoutURL   = variable_get('bbb_content_type_logoutURL_'   . $node->type, '');
+  $record =  variable_get('bbb_content_type_record_'   . $node->type, '');
   $settings = array(
     'nid'          => $node->nid,
     'name'         => $node->title,
@@ -589,8 +605,12 @@ function bbb_init_meeting($node = NULL, $params = array()) {
     'logoutURL'    => $logoutURL, //TODO: make absolute, as soon as supported
     'initialized'  => 0,
     'created'      => time(),
+    'record'       => ($record == 1) ? 'true' : 'false',
+	//'recordMeeting' => $node->bbb['recordMeeting'],
   );
   $params = array_merge($params, $settings);
+  //debug ($node);
+  //debug($params);
   return $params;
 }
 
@@ -708,7 +728,7 @@ function bbb_meeting_moderate($node) {
 
   $params = array(
     'meetingID' => $meeting->meetingid,
-    'password' => $meeting->moderatorPW,
+    'password' => $meeting->moderatorpw,
   );
 
   $status = bbb_api_getMeetingInfo($params);
diff --git a/includes/api.bbb.inc b/includes/api.bbb.inc
index b9463d0..d783edc 100644
--- a/includes/api.bbb.inc
+++ b/includes/api.bbb.inc
@@ -54,11 +54,13 @@
 * @see http://code.google.com/p/bigbluebutton/wiki/API#Create_Meeting_(create)
 */
 function bbb_api_create($params = array()) {
+  //debug($params);
   $query_string = bbb_api_generate_querystring($params, 'create');
+  //debug($query_string);
   $request = BIGBLUEBUTTON_BASE_URL . BIGBLUEBUTTON_CREATE_URL . '?' . $query_string;
   $xml = @simplexml_load_file($request);
   $response = bbb_api_parse_response($xml);
-
+  //debug($response);
   if ($response->returncode == 'SUCCESS') {
     unset($response->returncode);
     return $response;
