Handle NoneType when logging
Move atomic counter into the environment
Use isinstance not type
Implement __contains__ (aka: x in y) on environments