This is my mta file of the version that works.

I have another version in which I try to improve it but that currently does not work yet.