Solution is on post #5.