Environement variable support added to enable debug mode.