Memory tracing and sync module fixes