Added check for token.