Modified for ARM.