Removed initlogging from functionality