DJ and producer Calvin Harris criticized his former girlfriend, pop star Taylor Swift, on social media on Wednesday, for making him "look bad" after People magazine revealed that Swift had written Harris' latest hit song under a pseudonym.

The magazine reported that Swift had written the song "This is What You Came For," under the pseudonym 'Nils Sjoberg' while the couple were dating. The report also added that Swift became upset over an interview in which Harris said he did not think he would work with her in the future.

A clearly upset Harris sent out a series of tweets directed at Swift.

Praising Swift's lyric-writing talents, Harris claimed she had wanted to keep their collaboration secret.

He further accused Swift of painting him in a bad light. 

He demanded her to concentrate on her new relationship. 

 Harris also hinted at a long-speculated feud between Swift and pop star Katy Perry

Harris further asked her to focus on the positive aspects of her life. 

The couple split last month after dating for more than a year. Swift, who was named 2016's highest-earning celebrity by Forbes magazine this week, has recently been reportedly dating British actor Tom Hiddleston.

Representatives for Perry did not respond for comment.

(With inputs from Reuters)

(Feature Image Source: Twitter