Finish improving the notation used for the SG method.