Moved resources setup into script