Prepare environtment