Fixing order of the query.
Do not remember.
Making environ work