Real Sociedad have confirmed the loan signings of Mark Gonzalez from Liverpool and John Viafara from Portsmouth until the end of the season.Chile midfielder Gonzalez has yet to play for the European champions due to work permit problems while Viafara has struggled to make an impact at Pompey after joining from Once Caldas last summer. A statement on the club's official website read: 'Real Sociedad have reached an initial agreement with Liverpool and Portsmouth for the transfers until the end of the season of players Mark Gonzalez and John Viafara, respectively. 'Both players will undergo on Monday a medical before they sign the contracts.' Gonzalez has suffered a frustrating time since deciding to move to Anfield from Albacete and he will not find out until the end of the current campaign whether or not he will be given a work permit to remain in England. A move to Spain appears to suit all parties as the winger will get some much-needed match practice while Sociedad will benefit from having a player eager to prove himself. Viafara is a Colombia international and will add depth to a Sociedad side which is struggling in the Primera Liga. Sunday's 4-1 thrashing at Alaves means the Basques are just four points above the relegation zone with the pressure starting to mount on coach Jose Mari Amorrortu.