Makes sure only one instance of the program can be run