Write trap code implemented