Add memory_sync and memory_async models