Watch Fifth Harmony Perform 'All in My Head (Flex)' on 'Dancing With the Stars'

ABC/Adam Taylor
Fifth Harmony performs onĀ Dancing with the Stars on May 24, 2016.

Fifth Harmony took over Dancing With the Stars during Tuesday night's finale, with a tropical-tinged extravaganza performing "All In My Head (Flex)."

Fifth Harmony's 'Work From Home' Tops Pop Songs Chart

The show included Carnival-style dancers backing the band as they performed their Fetty Wap-featuring single off their upcoming album, 7/27

Fifth Harmony Puts In Work for 'Work From Home' Performance at 2016 Billboard Music Awards

7/27 is set for release May 27 and follows Fifth Harmony's 2015's debut album Reflection. On Sunday, the group performed the album's first single "Work From Home," which features Ty Dolla $ign, at the Billboard Music Awards. 

Watch their Dancing With the Stars performance (via Rolling Stone) here: