Can't seem to get the deleting of the empty properties to work. I will continue to work on it later.