Add logging script