Fixed issue with static functions that shouldn't be static.
Writing lastRun DateTime value to settings file.