How I think it should work under the hood