Set up enviroment