Added settings defaults, fixed thread bug