Take credentials out of main script