A quick-thinking husband had to deliver his daughter at home after his wife suddenly went into labour - and was so shocked he mistakenly said 'it's a boy'.
Mechanic Calum Stewart, 28, came home from work to find heavily pregnant wife Terri, 29, in extreme pain after her waters broke.
The pair called the hospital around 5.30pm but were told to wait a bit longer before coming in for the delivery of their second child.
But just an hour and a half later Calum was forced to jump into action when Terri said she felt like she had to start pushing.
Heroic husband Calum sprang to action, getting towels for the delivery and dialling 999 as he prepared to take up the role of the midwife in the birth of baby Hannah.
The operator talked him through the delivery process and after Hannah was safely delivered at 7.27pm Calum picked her up and wrapped her in a towel.
Barely able to hear the operator with the noise of their newborn child crying, Calum was asked whether it was a boy or a girl - and told them it was a boy.
Calum and Terri, who also have son Lochlin, aged two, didn't find out the sex of baby Hannah before she was born.
But despite his initial mistake, Calum said he is happy to have brought a little girl into the world and have 'one of each'.
Proud dad Calum, from Glenrothes, Fife, said: "Terri's waters broke about 5.30pm.
"We've got a little boy and luckily his gran was there and took him away.
"Terri was told to wait for six hours before going into hospital.
"About 7pm she started getting a bit of pain and about 7.15pm she said 'I'm going nowhere'.
"I ran upstairs and got some towels and then called 999.
"I got asked if there was a head, then I said 'there it is, and now it's gone'.
"I didn't have time to think and human instinct kicked in.
"The operator asked what we'd had then, in the moment, I picked her up, looked at her and said 'it's a boy'.
"The ambulance came just after 7.30pm, they arrived really quickly.
It's a girl!
"They then checked if everything was OK and confirmed she was a girl.
"I tidied up a bit then jumped in the car to go to the hospital.
"The midwives couldn't believe I took away their birth.
"There was a joke going about that I should have a career change."
Both Terri and Hannah, who was born a healthy 7lbs 20oz, are doing well after the surprise delivery on July 10.
Calum said he is not eager to repeat the experience but is 'proud' of his actions.
He said: "I'm quite proud.
"If you asked me if I would want to do it I'd probably say 'no', but I'm quite chuffed with it.
"When the shock wears off you feel quite good that you have done it."