Some amendments to the code to provide precise answers