Add upward scanning of case block lines