Added logging for debugging.