Removed sysout and intermediate variables.
Minor change