Updated Implementation of Roberts Algorithm