This isnt working at all

Major work required here. Probably end up rewriting this all of this