West Ham have completed the signing of Republic of Ireland international Joey O'Brien on a free transfer.
The 25-year-old utility man was released by Bolton Wanderers at the end of last season and has spent the last few weeks training with the Hammers.
Boss Sam Allardyce has now made O'Brien his fourth summer signing after Kevin Nolan, Abdoulaye Faye and Matt Taylor.
"I'm delighted to finally sign because I've been here since the start of pre-season," O'Brien told the club website.
"It's been a few weeks now and it's gone well. The manager wanted me to sign and as soon as I heard that, there was no real hesitation. I'm pleased it's done and dusted."
O'Brien, who has three international caps, made his first-team debut for Bolton under then manager Allardyce in 2004 and has played in midfield and at right-back.