A method for puncturing a pericardial membrane of a human patient, the method comprising inserting a needle into the chest of the human patient, detecting a phase of a mechanical activity of the heart of the human patient, advancing the needle toward the heart of the human patient in synchronization with the detected phase of the mechanical activity of the heart of the human patient, and repeating the detecting and advancing steps until the pericardial membrane of the human patient is punctured.