Some work on auth system.