Added sharedkey middleware