Add logging ability