I am refactoring my code into a class. Using this has brought up a couple of issues which I have mostly solved. However I still have one issue regarding using a
this