Got everything working including the security with tokens.