Any usecase for accepting "int cur" here?