Add asserts in debug mode