Just an update. Still need algorithm