 It was written by Diplo, Ezra Koenig, Beyoncé, Emile Haynie, Josh Tillman, MNEK and MeLo-X.The song contains a sample of "Can't Get Used to Losing You" performed by Andy Williams and written by Doc Pomus and Mort Shuman; an interpolation of "Maps" performed by Yeah Yeah Yeahs and written by Brian Chase, Karen O and Nick Zinner; and an interpolation of "Turn My Swag On", written by Soulja Boy, Antonio Randolph and Kevin McConnell.