Updated minimap code.