Added code for Not