In case it helps, I've referred to a similar problem, in this post.