Added sanity checks
Added an autojoin module