Automatic assembly and code cleanup