Hello, I think you can look at thiscodebase, and the blog posts 1 and 2. I think what ayushgaud is doing is very similar to what you want to do.