Implement first version of env