Added preference manager and auto-start option.