Refactored startup, added "hidden" logout