After midazolam premedication , a 1 g/kg/min remifentanil infusion was started , and patients were randomly allocated to receive either propofol ( Group P ) or ketamine ( Group K ) as well as mivacurium for muscle relaxation .