Changed constructor of nodemap