Detect starting point automatically.