By James Hibberd
Updated March 26, 2014 at 08:30 PM EDT
Credit: Rodrigo Vaz/FilmMagic

The Mother has a new best friend: Tiya Sircar has been cast at the last minute to replace Krysta Rodriguez on How I Met Your Dad.

Sircar will play the “sexy and flamboyant best friend” of Sally (Greta Gerwig) on the eagerly awaited CBS How I Met Your Mother spinoff pilot.

The actress just wrapped an arc on CBS’ The Crazy Ones playing Sarah Michelle Gellar’s assistant and Hamish Linklater’s love interest. She was also one of the leads in The Internship this past summer and just did an arc on The Witches of East End for Lifetime. She’s also one of the new characters in Disney’s new animated series Star Wars Rebels.

Rodriguez had this role previously but left the show after a table read earlier this week. — Jake Perlman contributed to this report