Second attempt at fixing the secure access problem.