Wasnt working before for some reason but I had another working version else where so just copied that over this one...