Added preliminary minimap code