Fixed bug with empty cells. Updated logging conditions.