More Lint optimisations. Login stuff is nearly ready too