Woody Allen has been a fan of Miley Cyrus ever since she was the main star on Disney's 'Hannah Montana'.

Woody Allen

Woody Allen

The pair have teamed up for Amazon comedy TV series 'Crisis in Six Scenes' and the legendary filmmaker has now revealed what it was that attracted him to casting the 'Wrecking Ball' singer.

Woody, 80, got to see Miley, 23, play the titular character in the musical TV series because his kids were fans of 'Hannah Montana' and was always very impressed by her comic timing.

Speaking to Digital Spy, he shared: "When I was younger and my kids were growing up, I would go through the channels and I would see her for a second. I stopped and I noticed, 'Who is this kid? She's got a great delivery!' She was knocking off those one-liners like she was a very gifted comic performer, and then I forgot about her and moved on."

Woody jumped at the chance to offer Miley a role in his new project and he was not disappointed by her performances during shooting.

He added: "I thought to myself, 'She is perfect for this part. Why don't I cast her?' And she turned out to be a wonderful actress who is terrific with the gag lines. She is great with them and she's a lovely person. I had a wonderful, wonderful time working with her."

Meanwhile, Woody said he didn't realise how hard it would be to turn his hand to television after so many years spent in the movie business and he doubts he'll return to the small screen again.

He said: "I am hoping that I am never going to have to do this again as long as I live. It was very hard for me to do it; it was not an easy thing, but it's over."

The six-part show, in which Miley will star as Lennie Dale, will debut on September 30.