Still debugging, but now it is working!