Changed script to accept words as arguments