Adding action logging