Changed code for Not, removed try error