Added MemoryMeasurer and reverted ProcessingService to an earlier version to avoid memory leaks