Made offset optional in memspec.