-Finally got out of an infinite loop