First attempt at scripting.