Create new file,Added get state file. This needs to run before and every five minutes.