Improvements to block expression recognition