Trimming non-essential code