Unwanted code removal