Added logging to different files.