Fix compile errors
Create on done scratch method