Consider the following sentence:
"Having completed the project ahead of schedule, the team celebrated its success by throwing a surprise party for their manager."
Which of the following alternatives replaces the underlined phrase while maintaining the original meaning but altering the syntax?