Add search and register to structure