Think i got it working