Copy and pasted code!

You aren't getting this through, sort it out, remove the duplication.