What I used to find the solution. Not sure if it's a robust
solution but it worked!