Added onSizeError and onExtError