Olivia Wilde may replace Jennifer Garner in "Better Living Through Chemistry"

Image and video hosting by TinyPic

"Cowboys & Aliens" star Olivia Wilde is set to replace Jennifer Garner in Occupant Films' darkly comedic thriller "Better Living Through Chemistry."

Indie pic was originally slated to star Garner before she recently became pregnant with her third child.

In July, Sam Rockwell signed on to play a meek, small-town pharmacist stuck in a loveless marriage who rediscovers himself by starting an affair with a trophy wife, who will now be played by his "Cowboys" co-star Wilde.

After she introduces him to the pleasures of prescription drugs, things spin out of control when they begin plotting to kill her husband.