Register main