Use isVisual flag instead of hardcoding.