Added storage for holding hostname. Added commenting.