Neil Flynn and Patricia Heaton Neil Flynn and Patricia Heaton

Sacred Heart's resident janitor is scrubbing into a new role. Scrubs star Neil Flynn has been tapped to play Patricia Heaton's husband in ABC's sitcom pilot, The Middle, The Hollywood Reporter reports.

The family comedy will focus on Flynn's and Heaton's middle-class characters struggling to raise their three children in Middle America.

Flynn's casting comes on the heels of Scrubs' eighth season premiere on ABC Tuesday night, which is likely to be its last.

The actor was most recently seen in May's Indiana Jones and the Kingdom of the Crystal Skull.

Heaton last graced the boob tube on Fox's Back to You with Kelsey Grammer — who has landed his own ABC pilot.