Modified the left side opening detection.