Added apitoken check.