Add initializer to check that the necessary env variables are defined