Adding register API