Revised algorithm with using bennu.magic.ubc.ca