Created registry class, and allocated buffer.