 
 void aci_loop()
 {
+  static bool setup_required = false;
 
   // We enter the if statement only when there is a ACI event available to be processed
   if (lib_aci_event_get(&aci_state, &aci_data))
   {
     aci_evt_t * aci_evt;
-
     aci_evt = &aci_data.evt;
     //@todo change this so that the commands and events can be processed here in a switch case instead of callbacks
     //hal_aci_tl_msg_rcv_hook(&aci_data);

 */

#include <SPI.h>
#include <avr/pgmspace.h>
#include "services.h"
#include <ble_system.h>
#include <lib_aci.h>

  /** We reset the nRF8001 here by toggling the RESET line connected to the nRF8001
   *  and initialize the data structures required to setup the nRF8001
   */
  //The second parameter is for turning debug printing on for the ACI Commands and Events so they be printed on the Serial
  lib_aci_init(&aci_state, true);

	pinMode(6, INPUT); //Pin #6 on Arduino -> PAIRING CLEAR pin: Connect to 3.3v to clear the pairing
	if (0x01 == digitalRead(6))
