Implements basic registration logic