Added function for computing begin and end of block between hooks to Analyzer.