Don't set flag in init()
Return an error instead of using panic()