Final code debugging done