Learnt scrapping