Added boolean to turn on / off access logging