Marked with ATTRIBUTE_USED so that clang doesn't complain.