max_threads -> 200 and assert

Change-Id: I81f02100958564b8b4cfb359a8828d3cc531283c