Use NDEBUG macro for disabling assertions