Revert block: re-use existing 'reading' variable instead of checking direction again