Updated arc computation logic