Optimizing some return variables.