Finalizing prototype for localization