Added inflow layer (per id) using Hardik's awesome queries