Added fetchRecord api.