Made simulation script to run separate pieces