Added small changes before deleting to try and fix matlab error