There were just eight minutes remaining of a cagey contest when Liverpool , with Fernando Torres limping to join Steven Gerrard on the bench , secured a precious away win and edged towards the quarter-finals .