ASM findDistance method added