Improved "not" script