Deleted old algorithm code to be rid of clutter