Modified essetup to work with authorization.