Added function to run algorithm