Shouldn't this be an int ? Don't you pass a bool here ?