Setup environment on start