Working on environment inference