Adding semantic analysers to the code.