Adding the registration stuff