Optimized login.
Condensed code size.