Added constructor, logging and loading of XML resource.