Added logger middleware