Code for MagStream coordinates