Slightly better run algorithm