Gave credit in the themes to ranman and agnoster for their methods which I used