This is indeed the answer. I will write out the equations when I have a bit more time.