Add assertion error for debug