Unnecessary codes are removed