Removed useless/unused variables from the script.