 When the album was considered to be finished, they were persuaded by LaBarbera Whites to work on a new track.Winnberg commented that it had always been "an unwritten rule" to not write songs about Spears' personal life, since "Sweet Dreams My LA Ex", an answer song to Justin Timberlake's "Cry Me a River", was rejected by her record label.However, the duo wrote "Piece of Me" with Klas Åhlund anyway as an answer to Spears' critics, and sent it to the singer who "loved it".