Some unsafe operations for reading env variables. Need to cleanup.