Added a whole load of stuff on testing machine algorithms