Testing script refactor.