Added hostname to configuration and example code.