Replaces code by selector.