Moved to distributed architecture

Correcting environmental variables