Added strip recognition code