Append trap
Range trap code