Created register logic