Adding stand alone code