Clearance layer
Rearrange code in clearance layer