  We have developed a modified form of the equations of smoothed particle
magnetohydrodynamics which are stable in the presence of very steep density
gradients. Using this formalism, we have performed simulations of the collapse
of magnetised molecular cloud cores to form protostars and drive outflows. Our
stable formalism allows for smaller sink particles (< 5 AU) than used
previously and the investigation of the effect of varying the angle, {\theta},
between the initial field axis and the rotation axis. The nature of the
outflows depends strongly on this angle: jet-like outflows are not produced at
all when {\theta} > 30{\deg}, and a collimated outflow is not sustained when
{\theta} > 10{\deg}. No substantial outflows of any kind are produced when
{\theta} > 60{\deg}. This may place constraints on the geometry of the magnetic
field in molecular clouds where bipolar outflows are seen.
