Logs and stores sentences properly.