Added multiple instances block

Now program can be run only once.