Added ability to make sure only 1 instant of the program is running.