It is minor but the promise could be resolved with data.layers instead of data. Again, very minor.