Erased old version of random action code