Algorithm for the FormSeher Project