Adding register functions.