Many modifications before starting the Authentication module