 Jervis assigned Miller to the Adriatic, but on the arrival of Commodore Horatio Nelson, Miller became Nelson's flag captain aboard .Miller commanded "Captain" at the Battle of Cape St Vincent on 14 February 1797.He followed Nelson aboard in May 1797, and was with him during his time with the inshore squadron.