More details on my stackoverflow question:
I appreciate all help. Or similar ways I can simulate this.