Added function for analyzing code