* Updated Magens script