Changes to make ASM work in user env.