Ported celestial and performed some modifications to globals for the
port