Initializing ret variables to 0 to avoid warning.