Record: Complete the all function. Maybe left some bug to resolve in further.