Added collsion and prodiction to the script.