Streamlining the script