Whoops, looks like I forgot to put the retry inside the if statement.