Add logging to debug staging