Made ManEngine thread-safe