Should be initialized with -1.