Add basic register functions