Optimising a Magnetic Launcher