Modifies script to allow for multiple accounts using array