Add support for memcpy/memset & better logging