Fix various bugs; turn off 'use asm' for now