Add assert, more print info