Got this working with some help from omicron, tested a bit and should be good to go