Steps taking a click-and-record script and refactoring it