Change env vars
Function names
Move retrieve to retrieve.js