The present invention pertains to a method for dosing a fluid formulation containing a medicinal substance into a mould to form a pharmaceutical unit with a volume of 1000 μI or less, using a peristaltic pump comprising a flexible tube for guiding the fluid formulation to the mould and at least one roller to compress the tube to induce a flow of the fluid formulation through the tube, the method comprising placing a spout of the tube adjacent the mould, displacing the roller over a predetermined length of the tube to dose the fluid formulation in the mould, positioning the spout such that when the dosing is finished, at least the open end of the spout is present in the dosed unit, and after dosing, retracting the spout end out of the dosed unit.