Refactor work for all projects + MIRE algorithm implementation