Make sure to declare mem*() properly.