Fixed exception
Added TODO: use log watch to receive file