[BLEEDING] Revive direction checking. Optimizations.