"Masters of Sex" will be back for another season on Showtime.

The network is renewing the show, as well as "Ray Donovan."

"Both 'Ray Donovan' and 'Masters of Sex' are quintessentially Showtime: bold, provocative, premium television with production values at the top of the food chain," said Showtime President David Nevins. "These acclaimed shows are filled with complex and interesting characters and settings that will no doubt give audiences compelling television to invest in for seasons to come."

"Master of Sex" gets about 4 million viewers for Showtime. The third season will be 12 episodes long.

The show follows William Masters and Virginia Johnson, who are human sexuality researchers. It is set in the 1950s.

"Masters" has received five Emmy nomination, including for actors Lizzy Caplan, Beau Bridges and Allison Janney.

Earlier in August, Caplan talked about shooting a sex scene with co-star Michael Sheen.

"I was scared, mainly because he was my friend at that point," she said. "I don't generally conduct myself in that way with my friends, generally."

Caplan said Sheen was clammy and appeared to be nervous as the scene went on. As soon as the scene was over, he threw up.

It wasn't until later that she found out that he had food poisoning.

"In the moment, there's no way to digest that in a reasonable way," she said. "I thought it was a direct cause and effect. My whole self confidence plummeted to the ground and I realised I'm a monster and anybody who touches me will end up vomiting."

Caplan was able to move on from feeling inadequate and has described her character as a dream role, according to the New York Daily News. But she does get a "wave of anxiety" when she remembers that she's going to be on television.