Removed root property and fixed logging