Rewrite the script which is more concise, readable .