Starting to implement piece extraction