Clean base code