Added chain reaction code :)