 
   # Stores a standup in the brain.
 
-  saveStandup = (room, time, utc) ->
-    standups = getStandups()
-    newStandup = 
+  saveStandup = (room, time, location, utc) ->
+    standups = getStandups()
+    newStandup =
       time: time
       room: room
       utc: utc
+      location: location
     standups.push newStandup
     updateBrain standups
     return

    saveStandup room, time
    msg.send 'Ok, from now on I\'ll remind this room to do a standup every weekday at ' + time
    return
  robot.respond /create standup ((?:[01]?[0-9]|2[0-4]):[0-5]?[0-9]) UTC([+-]([0-9]|1[0-3]))$/i, (msg) ->
    time = msg.match[1]
    utc = msg.match[2]

  # Fires the standup message.

  doStandup = (room) ->
    standups = getStandupsForRoom(room)
    if standups.length > 0
      #do some magic here to loop through the standups and find the one for right now
      theStandup = standups.filter(standupShouldFire)
      message = "#{PREPEND_MESSAGE} #{_.sample(STANDUP_MESSAGES)} #{theStandup[0].location}"
    else
      message = "#{PREPEND_MESSAGE} #{_.sample(STANDUP_MESSAGES)} #{standups[0].location}"
    robot.messageRoom room, message
    return

