Add logging for debugging