Added dump function for entities