Add missing asserts.
Add from_env() function.