Add HEAD and TAIL. Switch scope var alloc check.