Add top-level requires
Add missing method call
Check for necessary environment variables