Add simple registration function