Hopefully I have finally solved it.