meera syal was attracted to her role because miranda was not a clichéd private detective and she thought the humour was "fresh". during the second filming block, mark gatiss briefly joined the cast, playing the small but important role of robert louis stevenson in flashback scenes in episode five.