Added logging to refresh script