Initial commit of new staff algorithm