   blePeripheral.setAdvertisedServiceUuid(service.uuid());
   //Adding attributes for BLE peripheral.
   blePeripheral.addAttribute(service);
-  blePeripheral.addAttribute(characteristic);
   blePeripheral.addAttribute(desc);
+  blePeripheral.addAttribute(time);
 
   //Bind events for connects and disconnects.
   blePeripheral.setEventHandler(BLEConnected, blePeripheralConnectHandler);


void loop(void) {
  blePeripheral.poll();
}

void BLESetup(){

}

void blePeripheralConnectHandler(BLECentral& central) {
  buffer.drawText(stringBuffer.start().put("connected...").get(),15,8,buffer.rgb(255,0,0), &virtualDJ_5ptFontInfo);
  buffer.flush(display);
  stringBuffer.reset();
  if(time.written()){
    //Central wrote new time.
    setTime(time.getValue());
  }
}

void blePeripheralDisconnectHandler(BLECentral& central) {
  buffer.drawText(stringBuffer.start().put("disconnected...").get(),15,8,buffer.rgb(255,0,0), &virtualDJ_5ptFontInfo);
  buffer.flush(display);
  stringBuffer.reset();
}

void renderTime(){
  buffer.drawText(stringBuffer.start().putDec(hour()).put(":").putDec(minute()).put(":").putDec(second()).get(),15,8,buffer.rgb(255,0,0), &virtualDJ_5ptFontInfo);
}

//TODO: Method to render date.
/*void renderDate(unsigned int n){
