Malfunctionning code added and commented