seems to work

This version seems to work.