Add basic implementation of registration