Change offset calculation to use complex normalization