Attempt 5

This one works at long last.