First implementation of local environment