Add more logging for debugging purpose.